package com.ljj.service.impl;/**
 * @FileName: ProductCategoryServiceImpl.java
 * @Package: com.ljj.service.impl
 * @Author: lijiajun
 * <br/>
 * @Created: 2018/3/23 9:45
 * Copyright (C), 2018, KINGDEE
 */

import com.ljj.dataobject.ProductCategory;
import com.ljj.repository.ProductCategoryRepository;
import com.ljj.service.IProductCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p></p>
 * <p/>
 * <PRE>
 * <BR> 修改记录
 * <BR>-----------------------------------------------
 * <BR> 修改日期 修改人 修改内容
 * </PRE>
 *
 * @author lijiajun
 * @version 1.0
 * @since 1.0
 */
@Service
public class ProductCategoryServiceImpl implements IProductCategoryService{

    @Autowired
    private ProductCategoryRepository repository;

    @Override
    public ProductCategory findOne(Integer categoryId) {
        return repository.findOne(categoryId);
    }

    @Override
    public List<ProductCategory> findAll() {
        return repository.findAll();
    }

    @Override
    public List<ProductCategory> findByCategoryTypeIn(List<Integer> categoryTypeList) {
        return repository.findByCategoryTypeIn(categoryTypeList);
    }

    @Override
    public ProductCategory save(ProductCategory productCategory) {
        return repository.save(productCategory);
    }
}